package com.superiron.scaffold.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.superiron.scaffold.config.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 菜单表
 * @author yzg
 * @date 2022年6月20日10:16:11
 * 版权所有 泰山信息科技有限公司
 */
@Entity
@Table(name = "sa_menu")
@TableName("sa_menu")
@Data
public class MenuEntity extends BaseEntity {
 
	// 菜单名称
	@ApiModelProperty(value = "菜单名称", required = true)
	@Column(name = "title")
	private String title;
	// 菜单名称
	@ApiModelProperty("菜单图标")
	@Column(name = "icon")
	private String icon;
	// 菜单路径
	@ApiModelProperty("菜单路径")
	@Column(name = "path")
	private String path;
	
	// 父节点ID
	@ApiModelProperty("父节点ID")
	@Column(name = "parent_id")
    private String parentId;
	// 排序
	@ApiModelProperty("排序")
	@Column(name = "sort")
	private Integer sort;
	// 显示状态
	@ApiModelProperty("禁用状态：1：禁用；0：启用")
	@Column(name = "enabled")
	private Boolean enabled = false;
}
